package com.nervenets.shopping.service.impl;

import com.nervenets.shopping.service.MessageProducerService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.stereotype.Service;

@Service
@SpringBootConfiguration
public class MessageProducerServiceImpl implements MessageProducerService {
    //@Resource
    //private RabbitTemplate rabbitTemplate;
    @Value("${application.rabbitmq.listener.mallOrder}")
    private String mallOrderQueueName;

    @Override
    public void sendMallOrder(long mallOrderId) {
        //rabbitTemplate.convertAndSend(mallOrderQueueName, mallOrderId);
    }
}
